package com.wilson.eduorder;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@EnableDiscoveryClient //服务发现功能，nacos注册，在客户端微服务启动类中添加注解
@EnableFeignClients//服务调用openfeign，在调用端的启动类添加注解
@ComponentScan(basePackages = {"com.wilson"})
@MapperScan("com.wilson.eduorder.mapper")
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
